package 实验室;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;

public class 算法测试 {

    @Test
    public void test(){
        List list = Arrays.asList("1","2","3","4","5","6");
        for (int i = 1; i <= list.size(); i++) {
            System.out.println(list.get(i-1));
            if(i==list.size()|| i%4==0){
                System.out.println("Execute,i="+i);
            }
        }
        int size = 1720;
        int i = 1001;
        int loop = 500;
        if(i==size||i%loop==0){
            System.out.println("can query");
        }else{
            System.out.println("can not");
        }
        System.out.println();
    }






















}
